﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SH.Multitenant.Application.IServices.IPermission
{
    public class MenuDTO
    {

        public string PId { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        [MaxLength(50)]
        public string? PName { get; set; }
        /// <summary>
        /// 父类编号
        /// </summary>
        [MaxLength(50)]
        public string? ParentId { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [MaxLength(200)]
        public string? Path { get; set; }
        /// <summary>
        /// 图标
        /// </summary>
        [MaxLength(100)]
        public string? Icon { get; set; }
        /// <summary>
        /// 子类菜单
        /// </summary>
        public List<MenuDTO>? Children { get; set; }
    }
}
